<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'closeCachePage.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	<script type="text/javascript">
		function check()
		{
			var reg = new RegExp("^[0-9]*$");  
			var st = document.getElementById("maxsize");
			if(!reg.test(st.value) || st.value==null || st.value=="")
			{  
				alert("请输入数字!");
				st.focus(); 
				return; 
			}
			else
			{
				if(confirm("确定修改？"))
				{
					document.form1.submit();
					document.getElementById("ok").disabled="disabled";
				}
			}
		}
	</script>
	
  </head>
  
  <body>
  	<form action="gm.htm?action=setMaxSize" name="form1" method="post">
	    <table>
	    	<tr>
	    		<td><font color="red">密钥*</font></td>
	    		<td><input type="text" value="" name="key" style="width: 300px"/></td>
	    	</tr>
	    	<tr>
	    		<td><font color="red">游戏服最大人数*</font></td>
	    		<td><input type="maxsize" id="maxsize" value="${maxSize}" name="maxsize" style="width: 300px"/></td>
	    	</tr>
	    	<tr>
	    		<td>点击提交</td>
	    		<td>
	    			<input id="ok" type="button" value="点击修改" onclick="javascript:check()">
	    		</td>
	    	</tr>
	    </table>
    </form>
  </body>
</html>
